package com.xiaoyy.app.extend.common.enums;

/**
 * 内网app接口
 *
 * @author chenzh
 * @date 2018-08-12
 * */
public enum AppApiEnum {
    LOGIN0001("/sso/jycy/login/weixin","微信登录"),
    ALIPAYLOGIN("/aliPay/aliLogin","支付宝登录"),
    LOGIN0002("/sso/jycy/bindUser/weixin","微信绑定用户"),
    RCMLOGIN0001("/sso/rcm/loginSrcm","省人才码登录"),
    RCM0001("/sso/rcm/talent/getSyncVO","获取需要同步的数据"),
    RCM0002("/sso/rcm/talent/update/syncFlag","同步结果更新"),
    LOGIN0003("/sso/common/login","通用登录"),
    ZJZWWLOGIN("/login_wb/zjzwwLogin","政务网登录(个人)"),
    ZJZWWFRLOGIN("/login_wb/zjzwwFrLogin","政务网登录(法人)"),
    ;
    private String type;
    private String name;

    AppApiEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static AppApiEnum getByType(String type) {

        for (AppApiEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
